package com.sf.dlb.jpa.model;

import javax.persistence.Entity;
import javax.persistence.Table;

/**
 * 用户抽成表 Entity
 *
 * Created by jing.tan on 2018/12/10.
 */
@Entity
@Table(name = "user_commission")
public class UserCommissionInfo extends BaseEntity {
	/*
	  `user_id` varchar(64) DEFAULT NULL COMMENT '抽成用户id',
	  `user_grade` char(1) DEFAULT '1' COMMENT '抽成用户等级 1、读者（LV1），2、金牌读者（LV2），3、超级读者（LV3）',
	  `user_yield` decimal(20,3) DEFAULT '0.000' COMMENT '抽成比例',
	  `be_user_id` varchar(64) DEFAULT NULL COMMENT '被抽成用户的id',
	  `number` decimal(20,3) DEFAULT '0.000' COMMENT '抽成数量',
	 */
	
	private static final long serialVersionUID = 1L;
	private String userId;					// 抽成用户id
	private String userGrade;				// 抽成用户等级
	private Double userYield;     			// 抽成比例
	private String beUserId;     			// 被抽成用户的id
	private Double number;					// 抽成数量

	public String getUserId() {
		return userId;
	}

	public void setUserId(String userId) {
		this.userId = userId;
	}

	public String getUserGrade() {
		return userGrade;
	}

	public void setUserGrade(String userGrade) {
		this.userGrade = userGrade;
	}

	public Double getUserYield() {
		return userYield;
	}

	public void setUserYield(Double userYield) {
		this.userYield = userYield;
	}

	public String getBeUserId() {
		return beUserId;
	}

	public void setBeUserId(String beUserId) {
		this.beUserId = beUserId;
	}

	public Double getNumber() {
		return number;
	}

	public void setNumber(Double number) {
		this.number = number;
	}
}